﻿@{
    ViewBag.Title = "Mybook";
}

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
	<title>丁丁图书商城-用户中心</title>
    <link href="~/css/main.css" rel="stylesheet" />
    <link href="~/css/reset.css" rel="stylesheet" />
    <style>
        .fr a{
            font-weight:bold;
        }
    </style>
</head>
<body style="background:url(/img/背景.jpg)  no-repeat fixed center;background-size:100%;">
	<div class="header_con">
		<div class="header">
			<div class="welcome fl">欢迎来到丁丁图书商城</div>
			<div class="fr">
				<div class="login_btn fl">
                    @if (Session["username"] == null)
                    {
                        <a href="/Login/Login">登录</a>
                        <a href="/Login/Register">注册</a>
                    }
                    else
                    {
                        if ((int)Session["usertype"] == 1)
                        {
                        <a href="/Info/Info">欢迎您： @Session["username"]</a>
                        }
                        else
                        {
                        <a href="/Admin/Home">欢迎您： @Session["username"]</a>
                        }
                        <a href="/Login/Login">重新登录</a>
                    }
				</div>
				<div class="user_link fl">
					<span>|</span>
					<a href="/Info/Info">用户中心</a>
					<span>|</span>
					<a href="/Cart/Cart">我的购物车</a>
					<span>|</span>
					<a href="/Order/Order">我的订单</a>
				</div>
			</div>
		</div>		
	</div>

	<div class="search_bar clearfix">
		<a href="/Home/Index" class="logo fl"><img src="~/images/logo.png"></a>
		<div class="sub_page_name fl">|&nbsp;&nbsp;&nbsp;&nbsp;用户中心</div>
		<div class="search_con fr">
            <form method="post" action="/List/List">
                <input type="text" name="sou" class="input_text fl" id="txtSearch" />
                <input type="submit" value="搜索" class="input_btn fr" />
            </form>
		</div>		
	</div>
     <div class="navbar_con">
         </div>
	<div class="main_con clearfix">
		<div class="left_menu_con clearfix">
			<h3>用户中心</h3>
			<ul>
				<li><a href="/Info/Info">· 收藏夹</a></li>
				<li><a href="/Order/Order">· 我的订单</a></li>
				<li><a href="/Mybook/Index" class="active">· 我的书籍</a></li>
			</ul>
		</div>
		<div class="right_content clearfix">
				<h3 class="common_title2">我的书籍</h3>
            <table class="order_list_table w980">
					<tbody>                        
                        @foreach (var b in ViewBag.books)
                        { 
						<tr>
							<td width="55%">
								<ul class="order_goods_list clearfix">					
									<li class="col01"><img src="~/img/@b.Pic"></li>
									<li class="col02">@b.bookname</li>
									<li class="col03">@b.Author</li>
									<li class="col04"><a href="/Select/Index/@b.ID">阅读</a></li>	                                    	
								</ul>
							</td>
						</tr>
                        }
					</tbody>
				</table>
		</div>
	</div>



	<div class="footer">
		<div class="foot_link">
			<a href="#">关于我们</a>
			<span>|</span>
			<a href="#">联系我们</a>
			<span>|</span>
			<a href="#">招聘人才</a>
			<span>|</span>
			<a href="#">友情链接</a>		
		</div>
		<p>CopyRight © 2016 北京天天生鲜信息技术有限公司 All Rights Reserved</p>
		<p>电话：010-****888    京ICP备*******8号</p>
	</div>
	
</body>
</html>
